feat(ui): dock the tool palette to the right edge with v1 card styling#13
Draft
dustenhubbard wants to merge 2 commits into
Draft
feat(ui): dock the tool palette to the right edge with v1 card styling#13dustenhubbard wants to merge 2 commits into
dustenhubbard wants to merge 2 commits into
Conversation
Move the floating mouse-mode palette into a rounded, translucent card docked to the field's right edge, matching the v1 prototype: grouped tools with thin dividers (navigate / cut / trace / annotate), an active-tool accent state (accent fill + white icon + soft glow), bottom-right keycap hints, and name + shortcut tooltips. The card flips to the left edge when the left_handed option is set, wired to the View-menu toggle; this also implements the toggleHandedness() hook that checker.py already referenced. mode_x still records the docked side so the field's corner-text painter keeps clear of the palette. All tools, mouse-mode indices, keyboard shortcuts, and right-click dialogs are preserved; the trace palette, increments, brightness/contrast, and scale bar are untouched. theme.py gains per-scheme chrome tokens for the card. Adds 16 headless tests covering structure, keycaps, the active state, docking, and the left-handed flip.
…t/ui-palette-right # Conflicts: # PyReconstruct/modules/gui/palette/mouse_palette.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Move the floating mouse-mode palette into a rounded, translucent card
docked to the field's right edge, matching the v1 prototype: grouped
tools with thin dividers (navigate / cut / trace / annotate), an
active-tool accent state (accent fill + white icon + soft glow),
bottom-right keycap hints, and name + shortcut tooltips.
The card flips to the left edge when the left_handed option is set,
wired to the View-menu toggle; this also implements the toggleHandedness()
hook that checker.py already referenced. mode_x still records the docked
side so the field's corner-text painter keeps clear of the palette.
All tools, mouse-mode indices, keyboard shortcuts, and right-click dialogs
are preserved; the trace palette, increments, brightness/contrast, and
scale bar are untouched. theme.py gains per-scheme chrome tokens for the
card. Adds 16 headless tests covering structure, keycaps, the active
state, docking, and the left-handed flip.